package net.NingXiaRuiTai.ShortChain.utils;

import org.apache.shardingsphere.core.strategy.keygen.SnowflakeShardingKeyGenerator;

public class IdUtil {
    private static SnowflakeShardingKeyGenerator snowflakeShardingKeyGenerator
            = new SnowflakeShardingKeyGenerator();
    public static  Comparable<?> generateId(){
        return snowflakeShardingKeyGenerator.generateKey();
    }
}
